//
//  LCTermsServiceVC.m
//  LongChain
//
//  Created by FengZi on 2018/5/15.
//  Copyright © 2018年 FengZi. All rights reserved.
//

#import "LCTermsServiceVC.h"

@interface LCTermsServiceVC ()<UINavigationControllerDelegate>

@end

@implementation LCTermsServiceVC

- (void)viewDidLoad {
    
    NSString *path = [[NSBundle mainBundle]pathForResource:@"agreement" ofType:@"html"];
    NSString *longChainStr = path;
    self.urlStr = longChainStr;


    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationController.delegate = self;
}

//- (void)popToBack {
//    if (self.wkWebView.backForwardList.backList.count > 0) {
//        [self.wkWebView goBack];
//    }else{
//
//        [self.navigationController popViewControllerAnimated:YES];
//    }
//}

- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
    BOOL isTermService = [viewController isKindOfClass:[self class]];
    [self.navigationController setNavigationBarHidden:!isTermService animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
